<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<div class="barTitle shadow"><i class="iconfont">&#xe62d;</i>代理加盟</div>
<div id="warnMessage" class="col-sm-8 text-error mb15"></div>
<form method="post" class="form-horizontal col-sm-8" id="agent_form" enctype="multipart/form-data" target="hidden_frame" action="fileUpload">
    <div class="form-group">
        <label class="col-sm-3 control-label">公司/个人:</label>
        <div class="col-sm-9">
         <label class="radio-inline">
               <input type="radio" checked="checked" name="type" id="comId" value="COMPANY" onclick="chanageTitle('公司名称','营业执照')"/> 公司
         </label>
         <label class="radio-inline">
                <input type="radio" name="type" id="perId" value="PERSON" onclick="chanageTitle('姓名','身份证')"/> 个人
          </label>
      </div>
      </div>
	      <div class="form-group">
	          <label class="col-sm-3 control-label" id="title-name">公司名称:</label>
	          <div class="col-sm-9">
	              <input type="text" class="form-control" name="name" id="name"/>
	          </div>
	      </div>
	       <div class="form-group">
	         <label class="col-sm-3 control-label" id="title-img">*照片:</label>
	         <div class="col-sm-9">
	         	 <div class="col-xs-6 p0">
	         	 	 <div class="C999 file fl mr20" title="点击选择图片" onclick="$('#file').click();"><i class="iconfont f30">&#xe630;</i></div>
	         	 	 <span class="ndis"><input type="file" name="imgFile" onchange="$('#select-file').html($('#file').val());" id="file"/></span>
		             <input type="submit" value="上传" class="btn btn-info btn-xs fl mt5" onclick="uploadAgentImg(event);"/>
	             </div>
	             <div class="col-xs-6 p0 upload-agent-img">
	              	<img src="" id="image" title="点击查看大图" class="ndis" onclick="moveOver(event,'image')"/>
	             </div>
	             <div id="select-file" class="cb"></div>
	             <span class="help-block B2">请选择清晰的照片,支持JPG,JPEG,GIF，照片大小不超过1M</span>
	         </div>
	      </div>

      <div class="form-group">
          <label class="col-sm-3 control-label">常用邮箱:</label>
          <div class="col-sm-9">
              <input type="text" class="form-control" name="email" id="aEmail"/>
          </div>
       </div>
       <div class="form-group">
          <label class="col-sm-3 control-label">联系电话:</label>
          <div class="col-sm-9">
              <input type="text" class="form-control" name="phone" id="aPhone"/>
          </div>
       </div>
       <div class="form-group">
           <label class="col-sm-3 control-label">您的优势:</label>
           <div class="col-sm-9">
               <textarea class="form-control" rows="6" name="message" id="aMessage"></textarea>
           </div>
       </div>
       <div class="form-group">
		  <div class="col-sm-offset-3 col-sm-9">
				<button type="button" class="btn btn-info form-control" onclick="subAgentInfo(event)">提交</button>
		 </div>
	  </div>
	   <iframe name="hidden_frame" class="ndis"/>
	   <input type="hidden" name="imgUrl" id="imgUrl"/>
	   <input type="hidden" name="dir" value="image"/>
	   <input type="hidden" id="aliyun" value="${ALIYUNOSSURL }">
</form>
<script type="text/javascript">
    if($("#comId").is(':checked')){
    	$("#companyAgent").show();
    	$("#personAgent").hide();
    }
</script>